package org.glut.backend.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 电影排片表
 *
 * @author xiuci1412
 * @since 2025-08-01 17:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("movie_scheduling")
public class MovieScheduling implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 电影排片表ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 影院id
     */
    private Integer cinemaId;

    /**
     * 电影id
     */
    private Integer movieId;

    /**
     * 排片日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate sliceArrangementDate;

    /**
     * 开始时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    @DateTimeFormat(pattern="HH:mm")
    private LocalDateTime startTime;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 播放厅
     */
    private String playHall;

    /**
     * 结束时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    @DateTimeFormat(pattern="HH:mm")
    private LocalDateTime endTime;

}